package com.tech.connect.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;

import com.tech.connect.R;
import com.tech.connect.activity.NearActivity;

// Created by Ksy
public class MainTabFindFragment extends BaseFragment {
    @Override
    public View onCreateView(LayoutInflater inflater) {
        View view = inflater.inflate(R.layout.fragment_main_tab_find, null);
        return view;
    }

    @Override
    protected boolean isShowHeadBar() {
        return true;
    }

    @Override
    protected boolean isFullStateBar() {
        return true;
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        getHeadBar().setTitle("发现");
        initView(view);
        loadData();
    }

    private void initView(View view) {
        View rlCircle = view.findViewById(R.id.rlCircle);
        ImageView ivNew = view.findViewById(R.id.ivNew);
        View vMessageDot = view.findViewById(R.id.vMessageDot);
        View rlScan = view.findViewById(R.id.rlScan);
        View rlNear = view.findViewById(R.id.rlNear);
        rlCircle.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        rlScan.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        rlNear.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                jump2Activity(NearActivity.class);
            }
        });
    }

    private void loadData() {

    }
}